export const routes = [
  {
    path: '/dashboard',
    name: 'Dashboard',
    meta: { icon: 'Home', title: '首页' }
  },
  {
    path: '/article',
    name: 'Article',
    meta: { icon: 'FileText', title: '文章管理' },
    children: [
      {
        path: '/article/list',
        name: 'ArticleList',
        meta: { icon: 'List', title: '文章列表' }
      }
    ]
  },
  {
    path: '/database',
    name: 'Database',
    meta: { icon: 'Database', title: '数据库管理' },
    children: [
      {
        path: '/database/mongodb',
        name: 'MongoDB',
        meta: { icon: 'Leaf', title: 'MongoDB' },
        children: [
          {
            path: '/database/mongodb/collection',
            name: 'Collection',
            meta: { icon: 'Folder', title: '集合管理' }
          },
          {
            path: '/database/mongodb/document',
            name: 'Document',
            meta: { icon: 'File', title: '文档管理' }
          }
        ]
      },
      {
        path: '/database/mysql',
        name: 'MySQL',
        meta: { icon: 'Server', title: 'MySQL' }
      }
    ]
  },
  {
    path: '/user',
    name: 'User',
    meta: { icon: 'Users', title: '用户中心' },
    children: [
      {
        path: '/user/list',
        name: 'UserList',
        meta: { icon: 'User', title: '用户管理' }
      },
      {
        path: '/user/role',
        name: 'UserRole',
        meta: { icon: 'Shield', title: '角色管理' }
      },
      {
        path: '/user/department',
        name: 'UserDepartment',
        meta: { icon: 'Building', title: '部门管理' }
      },
      {
        path: '/user/position',
        name: 'UserPosition',
        meta: { icon: 'Briefcase', title: '岗位管理' }
      }
    ]
  },
  {
    path: '/permission',
    name: 'Permission',
    meta: { icon: 'Key', title: '权限中心' },
    children: [
      {
        path: '/permission/list',
        name: 'PermissionList',
        meta: { icon: 'Lock', title: '权限管理' }
      },
      {
        path: '/permission/operation',
        name: 'OperationLog',
        meta: { icon: 'Activity', title: '操作日志' }
      },
      {
        path: '/permission/interface',
        name: 'InterfaceLog',
        meta: { icon: 'Plug', title: '接口日志' }
      }
    ]
  },
  {
    path: '/system',
    name: 'System',
    meta: { icon: 'Settings', title: '系统配置' },
    children: [
      {
        path: '/system/menu',
        name: 'MenuManage',
        meta: { icon: 'Menu', title: '菜单管理' }
      },
      {
        path: '/system/dictionary',
        name: 'DataDictionary',
        meta: { icon: 'Book', title: '数据字典' }
      }
    ]
  }
]
